package com.bijava.vo;


public class BusinessException extends RuntimeException {

  private static final Long serialVersionUID = 1L;

  private Integer errorCode = StatusCodeEnum.FAILED.getCode();

  public BusinessException() {
    super();
  }

  public BusinessException(String message) {
    super(message);
  }

  public BusinessException(Throwable cause) {
    super(cause);
  }

  public BusinessException(String message, Throwable cause) {
    super(message, cause);
  }

  public BusinessException(Integer errorCode, String message) {
    super(message);
    this.errorCode = errorCode;
  }

  public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
  }

  /** -------- setter & getter -------- */
  public Integer getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(Integer errorCode) {
    this.errorCode = errorCode;
  }

}
